<script src="./template/strong_a1/touch/mobiledate/dev/js/mobiscroll.core-2.6.2.js" type="text/javascript"></script>
                    <script src="./template/strong_a1/touch/mobiledate/dev/js/mobiscroll.core-2.6.2.js" type="text/javascript"></script>
					<script src="./template/strong_a1/touch/mobiledate/dev/js/mobiscroll.core-2.6.2-zh.js" type="text/javascript"></script>
                    <link href="./template/strong_a1/touch/mobiledate/dev/css/mobiscroll.core-2.6.2.css" rel="stylesheet" type="text/css" />
                    <link href="./template/strong_a1/touch/mobiledate/dev/css/mobiscroll.animation-2.6.2.css" rel="stylesheet" type="text/css" />
                    <script src="./template/strong_a1/touch/mobiledate/dev/js/mobiscroll.datetime-2.6.2.js" type="text/javascript"></script>
                    <script src="./template/strong_a1/touch/mobiledate/dev/js/mobiscroll.android-2.6.2.js" type="text/javascript"></script>
                    <link href="./template/strong_a1/touch/mobiledate/dev/css/mobiscroll.android-2.6.2.css" rel="stylesheet" type="text/css" />		
<input type="hidden" name="selectsortid" size="45" value="$_G['forum_selectsortid']" />
<!--{if $_G['forum_typetemplate']}-->
	<!--{if $_G['forum']['threadsorts']['description'][$_G['forum_selectsortid']] || $_G['forum']['threadsorts']['expiration'][$_G['forum_selectsortid']]}-->
		<div class="sinf bw0">
			<dl>
				<!--{if $_G['forum']['threadsorts']['description'][$_G['forum_selectsortid']]}-->
					<dt>{lang threadtype_description}</dt>
					<dd>$_G[forum][threadsorts][description][$_G[forum_selectsortid]]</dd>
				<!--{/if}-->
				<!--{if $_G['forum']['threadsorts']['expiration'][$_G['forum_selectsortid']]}-->
					<dt><span class="rq">*</span>{lang threadtype_expiration}</dt>
					<dd>
						<div class="ftid">
							<select name="typeexpiration" tabindex="1" id="typeexpiration">
								<option value="259200">{lang three_days}</option>
								<option value="432000">{lang five_days}</option>
								<option value="604800">{lang seven_days}</option>
								<option value="2592000">{lang one_month}</option>
								<option value="7776000">{lang three_months}</option>
								<option value="15552000">{lang half_year}</option>
								<option value="31536000">{lang one_year}</option>
							</select>
						</div>
						<!--{if $_G['forum_optiondata']['expiration']}--><span class="fb">{lang valid_before}: $_G[forum_optiondata][expiration]</span><!--{/if}-->
					</dd>
				<!--{/if}-->
			</dl>
		</div>
	<!--{/if}-->
	$_G[forum_typetemplate]

<!--{else}-->

	<!--{if $_G['forum']['threadsorts']['description'][$_G['forum_selectsortid']]}-->
		<tr>
			<th class="ptm pbm bbda">{lang threadtype_description}</th>
			<td class="ptm pbm bbda" colspan="2">$_G[forum][threadsorts][description][$_G[forum_selectsortid]]</td>
		</tr>
	<!--{/if}-->
	<!--{if $_G['forum']['threadsorts']['expiration'][$_G['forum_selectsortid']]}-->
		<tr>
			<th class="ptm pbm bbda">{lang threadtype_expiration}</th>
			<td class="ptm pbm bbda" colspan="2">
				<div class="ftid">
					<select name="typeexpiration" tabindex="1" id="typeexpiration">
						<option value="259200">{lang three_days}</option>
						<option value="432000">{lang five_days}</option>
						<option value="604800">{lang seven_days}</option>
						<option value="2592000">{lang one_month}</option>
						<option value="7776000">{lang three_months}</option>
						<option value="15552000">{lang half_year}</option>
						<option value="31536000">{lang one_year}</option>
					</select>
				</div>
				<!--{if $_G['forum_optiondata']['expiration']}-->{lang valid_before}: $_G[forum_optiondata][expiration]<!--{/if}-->
			</td>
		</tr>
	<!--{/if}-->

	<!--{loop $_G['forum_optionlist'] $optionid $option}-->
		<tr>
			<p class="ptm pbm bbda" style="display:none;"><!--{if $option['required']}--><span class="rq">*</span><!--{/if}-->$option[title]</p>
			<td class="ptm pbm bbda">
				
				<!--{if in_array($option['type'], array('number', 'text', 'email', 'calendar', 'image', 'url', 'range', 'upload', 'range'))}-->
					<!--{if $option['type'] == 'calendar'}-->	
                    			
      				<script>
					$(function () {
						var opt = new Date().getFullYear();
						var opt = {
							
							
						}
						opt.date = {preset : 'date',startYear:1900};
						$('.datetime').scroller($.extend(opt['date'], { theme: 'android', mode: 'scroller', display: 'modal', lang: 'zh'}));
					
			
					});
				    </script>
					<div class="text_choices">
						<div class="title-flex">$option[title]<!--{if $option['required']}--><span class="rq">*</span><!--{/if}--></div>
						<div class="input-flex flex">
							<div id="select_$option[identifier]">	
								<input type="text" name="typeoption[{$option[identifier]}]" readonly="readonly" size="15" class="ppx datetime $_GET[searchoption][$optionid][value]" value="$option[value]" onchange="checkoption('$option[identifier]', '$option[required]', '$option[type]')" />
							</div>
						</div>	
						<div class="unit">$option[unit]</div>				
					</div>	
					<!--{elseif $option['type'] == 'image'}-->
					<div class="image_choices">
						<div class="title-flex">$option[title]<!--{if $option['required']}--><span class="rq">*</span><!--{/if}--></div>
						<div class="rightbox flex">
							<div id="select_$option[identifier]">							
							<div id="sortattach_image_{$option[identifier]}" class="">
							<!--{if $option['value']['url']}-->
								<a href="$option[value][url]" target="_blank"><img class="spimg" src="$option[value][url]" alt="" /></a>
							<!--{/if}-->
							</div>
							<!--{if !($option[unchangeable] && $option['value'])}-->
							<button type="button" class="g_button" onclick="uploadWindow($_G[fid],function (aid, url){sortaid_{$option[identifier]}_upload(aid, url)})"><em><!--{if $option['value']}-->{lang update}<!--{else}-->{lang upload}<!--{/if}--></em></button>
							<input type="hidden" name="typeoption[{$option[identifier]}][aid]" value="$option[value][aid]" id="sortaid_{$option[identifier]}" />
							<input type="hidden" name="sortaid_{$option[identifier]}_url" id="sortaid_{$option[identifier]}_url" />
							<!--{if $option[value]}--><input type="hidden" name="oldsortaid[{$option[identifier]}]" value="$option[value][aid]" tabindex="1" /><!--{/if}-->
							<input type="hidden" name="typeoption[{$option[identifier]}][url]" id="sortattachurl_{$option[identifier]}" {if $option[value][url]}value="$option[value][url]"{/if} tabindex="1" />
							<!--{/if}-->
							<span id="check{$option[identifier]}" class="check_block"></span>
							<script type="text/javascript" reload="1">
								function sortaid_{$option[identifier]}_upload(aid, url) {
									s_setid('sortaid_{$option[identifier]}_url').value = url;								
									updatesortattach(aid, url, '{$_G['setting']['attachurl']}forum', '{$option[identifier]}');
								}								
								
							</script>
							</div>
						
							<!--{if $option['maxnum'] || $option['minnum'] || $option['maxlength'] || $option['unchangeable'] || $option[description]}-->
								<div class="description">
								<!--{if $option['maxnum']}-->
									{lang maxnum} $option[maxnum]&nbsp;
								<!--{/if}-->
								<!--{if $option['minnum']}-->
									{lang minnum} $option[minnum]&nbsp;
								<!--{/if}-->
								<!--{if $option['maxlength']}-->
									<p>{lang maxlength} $option[maxlength]&nbsp;</p>
								<!--{/if}-->
								<!--{if $option['unchangeable']}-->
									<p>{lang unchangeable}&nbsp;</p>
								<!--{/if}-->
								<!--{if $option[description]}-->
									<p>$option[description]</p>
								<!--{/if}-->
								</div>
							<!--{/if}-->
						</div>			
						<div class="unit">$option[unit]</div>				
					</div>							
					<!--{else}-->
					<div class="text_choices">
						<div class="title-flex">$option[title]<!--{if $option['required']}--><span class="rq">*</span><!--{/if}--></div>
						<div class="input-flex flex">
							<div id="select_$option[identifier]">
								<input type="text" name="typeoption[{$option[identifier]}]" id="typeoption_$option[identifier]" class="ppx" tabindex="1" size="$option[inputsize]" onBlur="checkoption('$option[identifier]', '$option[required]', '$option[type]'{if $option[maxnum]}, '$option[maxnum]'{else}, '0'{/if}{if $option[minnum]}, '$option[minnum]'{else}, '0'{/if}{if $option[maxlength]}, '$option[maxlength]'{/if})" value="{if $_G['tid']}$option[value]{else}{if $member_profile[$option['profile']]}$member_profile[$option['profile']]{else}$option['defaultvalue']{/if}{/if}" $option[unchangeable] />
							</div>							
							<!--{if $option['maxnum'] || $option['minnum'] || $option['maxlength'] || $option['unchangeable'] || $option[description]}-->
								<div class="description">
								<!--{if $option['maxnum']}-->
									{lang maxnum} $option[maxnum]&nbsp;
								<!--{/if}-->
								<!--{if $option['minnum']}-->
									{lang minnum} $option[minnum]&nbsp;
								<!--{/if}-->
								<!--{if $option['maxlength']}-->
									<p>{lang maxlength} $option[maxlength]&nbsp;</p>
								<!--{/if}-->
								<!--{if $option['unchangeable']}-->
									<p>{lang unchangeable}&nbsp;</p>
								<!--{/if}-->
								<!--{if $option[description]}-->
									<p>$option[description]</p>
								<!--{/if}-->
								</div>
							<!--{/if}-->
							<span id="check{$option[identifier]}" class="check_block"></span>
						</div>	
						<div class="unit">$option[unit]</div>				
					</div>	
					<!--{/if}-->
				<!--{elseif in_array($option['type'], array('radio', 'checkbox', 'select'))}-->
					<!--{if $option[type] == 'select'}-->
					<div class="select_choices">
						<div class="title-flex">$option[title]<!--{if $option['required']}--><span class="rq">*</span><!--{/if}--></div>
						<div class="rightbox flex">
							<div id="select_$option[identifier]">
						<!--{loop $option['value'] $selectedkey $selectedvalue}-->
							<!--{if $selectedkey}-->
								<script type="text/javascript">
									changeselectthreadsort('$selectedkey', $optionid, 'update');
								</script>
							<!--{else}-->
								<select  tabindex="1" class="select" onchange="changeselectthreadsort(this.value, '$optionid');checkoption('$option[identifier]', '$option[required]', '$option[type]')" $option[unchangeable] class="ps">
									<option value="0">{lang please_select}</option>
									<!--{loop $option['choices'] $id $value}-->
										<!--{if !$value[foptionid]}-->
										<option value="$id">$value[content] <!--{if $value['level'] != 1}-->&raquo;<!--{/if}--></option>
										<!--{/if}-->
									<!--{/loop}-->
								</select>
							<!--{/if}-->
						<!--{/loop}-->
						<!--{if !is_array($option['value'])}-->
							<select tabindex="1"  class="select" onchange="changeselectthreadsort(this.value, '$optionid');checkoption('$option[identifier]', '$option[required]', '$option[type]')" $option[unchangeable] class="ps">
								<option value="0">{lang please_select}</option>
								<!--{loop $option['choices'] $id $value}-->
									<!--{if !$value[foptionid]}-->
									<option value="$id">$value[content] <!--{if $value['level'] != 1}-->&raquo;<!--{/if}--></option>
									<!--{/if}-->
								<!--{/loop}-->
							</select>
						<!--{/if}-->
							</div>
							<!--{if $option['maxnum'] || $option['minnum'] || $option['maxlength'] || $option['unchangeable'] || $option[description]}-->
								<div class="description">
								<!--{if $option['maxnum']}-->
									{lang maxnum} $option[maxnum]&nbsp;
								<!--{/if}-->
								<!--{if $option['minnum']}-->
									{lang minnum} $option[minnum]&nbsp;
								<!--{/if}-->
								<!--{if $option['maxlength']}-->
									<p>{lang maxlength} $option[maxlength]&nbsp;</p>
								<!--{/if}-->
								<!--{if $option['unchangeable']}-->
									<p>{lang unchangeable}&nbsp;</p>
								<!--{/if}-->
								<!--{if $option[description]}-->
									<p>$option[description]</p>
								<!--{/if}-->
								</div>
							<!--{/if}-->
							<span id="check{$option[identifier]}" class="check_block"></span>
						</div>	
						<div class="unit">$option[unit]</div>				
					</div>		
					<!--{elseif $option['type'] == 'radio'}-->
					<div class="radio_choices">
						<div class="title-flex">$option[title]<!--{if $option['required']}--><span class="rq">*</span><!--{/if}--></div>
						<div class="rightbox">
							<ul>
							<!--{loop $option['choices'] $id $value}-->
								<li><label><input type="radio" name="typeoption[{$option[identifier]}]" id="typeoption_$option[identifier]" class="pr" tabindex="1" onclick="checkoption('$option[identifier]', '$option[required]', '$option[type]')" value="$id" $option['value'][$id] $option[unchangeable] class="pr"><i class="fa fa-check-square-o fa-1x"></i>$value</label></li>
							<!--{/loop}-->
							<!--{if $option['maxnum'] || $option['minnum'] || $option['maxlength'] || $option['unchangeable'] || $option[description]}-->
							<li>	
								<div class="description">
								<!--{if $option['maxnum']}-->
									{lang maxnum} $option[maxnum]&nbsp;
								<!--{/if}-->
								<!--{if $option['minnum']}-->
									{lang minnum} $option[minnum]&nbsp;
								<!--{/if}-->
								<!--{if $option['maxlength']}-->
									<p>{lang maxlength} $option[maxlength]&nbsp;</p>
								<!--{/if}-->
								<!--{if $option['unchangeable']}-->
									<p>{lang unchangeable}&nbsp;</p>
								<!--{/if}-->
								<!--{if $option[description]}-->
									<p>$option[description]</p>
								<!--{/if}-->
								</div>
							</li>	
							<!--{/if}-->
								<li><span id="check{$option[identifier]}" class="check_block"></span></li>
							</ul>

						</div>	
						<div class="unit">$option[unit]</div>				
					</div>	
					<!--{elseif $option['type'] == 'checkbox'}-->
					<div class="checkbox_choices">
						<div class="title-flex">$option[title]<!--{if $option['required']}--><span class="rq">*</span><!--{/if}--></div>
						<div class="rightbox flex">
							<div id="select_$option[identifier]">
							<ul class="xl2">
							<!--{loop $option['choices'] $id $value}-->
								<li><label><input type="checkbox" name="typeoption[{$option[identifier]}][]" id="typeoption_$option[identifier]" class="pc" tabindex="1" onclick="checkoption('$option[identifier]', '$option[required]', '$option[type]')" value="$id" $option['value'][$id][$id] $option[unchangeable] class="pc"><i class="fa fa-check-square-o fa-1x"></i>$value</label></li>
							<!--{/loop}-->
								<li><span id="check{$option[identifier]}" class="check_block"></span></li>
							</ul>
							</div>
						</div>	
						<div class="unit">$option[unit]</div>				
					</div>		
					<!--{/if}-->
				<!--{elseif in_array($option['type'], array('textarea'))}-->
					<div class="textarea_choices">
						<div id="select_$option[identifier]">
							<textarea name="typeoption[{$option[identifier]}]" placeholder="$option[title]<!--{if $option['required']}-->*<!--{/if}-->" tabindex="1" id="typeoption_$option[identifier]" rows="5"   onBlur="checkoption('$option[identifier]', '$option[required]', '$option[type]', 0, 0{if $option[maxlength]}, '$option[maxlength]'{/if})" $option[unchangeable] class="s_txt">$option[value]</textarea>
						</div>
						<!--{if $option['maxnum'] || $option['minnum'] || $option['maxlength'] || $option['unchangeable'] || $option[description]}-->
								<div class="description">
								<!--{if $option['maxnum']}-->
									{lang maxnum} $option[maxnum]&nbsp;
								<!--{/if}-->
								<!--{if $option['minnum']}-->
									{lang minnum} $option[minnum]&nbsp;
								<!--{/if}-->
								<!--{if $option['maxlength']}-->
									<p>{lang maxlength} $option[maxlength]&nbsp;</p>
								<!--{/if}-->
								<!--{if $option['unchangeable']}-->
									<p>{lang unchangeable}&nbsp;</p>
								<!--{/if}-->
								<!--{if $option[description]}-->
									<p>$option[description]</p>
								<!--{/if}-->
								</div>
							<!--{/if}-->
						<span id="check{$option[identifier]}" class="check_block"></span>		
					</div>	
				<!--{/if}-->
				
				<!--{if $_G[dd]}-->
				<!--{if $option['maxnum'] || $option['minnum'] || $option['maxlength'] || $option['unchangeable'] || $option[description]}-->
					<div class="ddd mtn">
					<!--{if $option['maxnum']}-->
						{lang maxnum} $option[maxnum]&nbsp;
					<!--{/if}-->
					<!--{if $option['minnum']}-->
						{lang minnum} $option[minnum]&nbsp;
					<!--{/if}-->
					<!--{if $option['maxlength']}-->
						{lang maxlength} $option[maxlength]&nbsp;
					<!--{/if}-->
					<!--{if $option['unchangeable']}-->
						{lang unchangeable}&nbsp;
					<!--{/if}-->
					<!--{if $option[description]}-->
						$option[description]
					<!--{/if}-->
					</div>
				<!--{/if}-->
                <span id="check{$option[identifier]}" class="mtn block"></span>
				<!--{/if}-->
			</td>
			 
		</tr>
	<!--{/loop}-->
	
<!--{/if}-->

<script type="text/javascript" reload="1">

	var CHECKALLSORT = false;
 	//EXTRAFUNC['validator'] = [];
 	//EXTRAFUNC['validator']['special'] = 'validateextra';
	
	function validateextra() {
		CHECKALLSORT = true;
	  
		<!--{loop $_G['forum_optionlist'] $optionid $option}-->
			if(!checkoption('$option[identifier]', '$option[required]', '$option[type]')) {				
				return false;
			}
		<!--{/loop}-->
		return true;
	}
 
 	<!--{if $_G['forum']['threadsorts']['expiration'][$_G['forum_selectsortid']]}-->	
	 
		simulateSelect('typeexpiration');
	<!--{/if}-->
	
	 
</script>
